package com.lannuokeji.biz;

import java.util.Date;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.lannuokeji.base.AController;

import io.swagger.annotations.ApiOperation;

/**
 * 控制台
 * @author 览诺科技
 *
 */
@Controller
@RequestMapping("/")
public class IndexController extends AController {

	@GetMapping
	public String index() {
		return "forward:/content/index.html";
	}
	
	@GetMapping("content/{url}")
    public String home(@PathVariable("url") String url) {
        return "content/" + url;
    }
	
	@GetMapping("content/{module}/{url}")
	public String html(@PathVariable("module") String module, @PathVariable("url") String url) {
		return "content/" + module + "/" + url;
	}
	
	
}
